package com.jiehoo.ooqi;
import java.util.ArrayList;
import java.util.List;

/**
 * Search result by search info.
 */
public class SearchResult
{
    /**
     * Total rows matched, if search info do not let get total rows, it will return -1.
     */
    private int totalRows=-1;
    /**
     * Indicate if any more matched result can be returned
     */
    private boolean hasMore;
    /**
     * Page result only.
     */
    private List<?> pageResult = new ArrayList<Object>();

    public int getTotalRows()
    {
        return totalRows;
    }

    public void setTotalRows(int totalRows)
    {
        this.totalRows = totalRows;
    }

    public boolean isHasMore()
    {
        return hasMore;
    }

    public void setHasMore(boolean hasMore)
    {
        this.hasMore = hasMore;
    }

    public List<?> getPageResult()
    {
        return pageResult;
    }

    public void setPageResult(List<?> pageResult)
    {
        this.pageResult = pageResult;
    }
}
